﻿@model CloudFranceTriple.Models.AccountingEntrySet
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@CloudFranceTriple.WebRole.Properties.Resources.AccountingEntryCreateTitle</h1>
    <section>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>@CloudFranceTriple.WebRole.Properties.Resources.AccountingEntryCreateTitle</legend>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.TeamAccountLabel
                </div>
                <div class="editor-field">
                    @Html.DropDownList("AccountSet_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.AccountSet_Id)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AccountingEntryActor
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Actor)
                    @Html.ValidationMessageFor(model => model.Actor)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AccountingEntryLabel
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Label)
                    @Html.ValidationMessageFor(model => model.Label)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AccountingEntryPurchaseDate
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.PurchaseDate)
                    @Html.ValidationMessageFor(model => model.PurchaseDate)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AccountingEntryBankDate
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.BankDate)
                    @Html.ValidationMessageFor(model => model.BankDate)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AccountingEntryDebitAmount
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.DebitAmount)
                    @Html.ValidationMessageFor(model => model.DebitAmount)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AccountingEntryCreditAmount
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.CreditAmount)
                    @Html.ValidationMessageFor(model => model.CreditAmount)
                </div>

                <p>
                    <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonCreate" />
                </p>
            </fieldset>
        }
        @Html.Partial("_AccountingEntryBacktoList")
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
    </section>
</div>
